The code for generating figures 8 and 9 is provided.

The file "RIE.py" performs the experiments, and the proposed RIEs are implemented in this file.
The code takes as input the aspect ratio (less or equal to 1), the SNR, and the prior for the matrix X. Matrices Y and W are taken to be Gaussian. To run it, use the following command:
 "python3 RIE.py -a (alpha) -s (SNR) -p (prior: Wigner or Wishart)
The outputs are the MSE of the Oracle, X-RIE and sqrt(X^2)-RIE for estimating X. And, the Oracle and the RIE for X^2.

The outputs are processed in the notebook file to generate the plots.